<?php
/* @var $this HompageContentController */
/* @var $data HompageContent */
$baseUrl = Yii::app()->request->baseUrl;
?>

<div class="view">
    <table border="1">
            <tbody>
                <tr style="height: 20px;">
                    <td rowspan="4"><?php echo CHtml::image($baseUrl . '/protected/uploads/images/' . $data->image, $data->image, array('title' => $data->title)) ;?> </td>
                    <td></td>
                    <td><?php echo CHtml::link(CHtml::image($baseUrl . '/images/edit-icon.png','Edit',array('title'=>'Edit','class'=>'no-border')), array('update', 'id'=>$data->id)); ?></td>
                </tr>
                <tr style="height: 20px;">
                    <td> <?php echo CHtml::encode($data->getAttributeLabel('title')) ?>:</td>
                    <td><h3 style="color: coral; font-style: italic;"><?php echo CHtml::encode($data->title); ?></td>
                </tr>
                <tr style="height: 20px;">
                    <td><?php echo CHtml::encode($data->getAttributeLabel('link')) ?>:</td>
                    <td><?php echo CHtml::encode($data->link); ?></td>
                </tr>
                <tr>
                    <td><?php echo CHtml::encode($data->getAttributeLabel('content')) ?>:</td>
                    <td><?php echo CHtml::encode($data->content); ?></td>
                </tr>
            </tbody>
        </table>

</div>